package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.CommodityDetailDao;
import com.huilian.iotbox.admin.wap.service.CommodityDetailService;
import com.huilian.iotbox.data.dto.CommodityDetailDto;
import com.huilian.iotbox.data.vo.CommodityDetailVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CommodityDetailServiceImpl implements CommodityDetailService {
    @Autowired
    private CommodityDetailDao commodityDetailDao;
    @Override
    public CommodityDetailVo findCommodityDetailByCommodityId(CommodityDetailDto commodityDetailDto) {
        return commodityDetailDao.findCommodityDetailByCommodityId(commodityDetailDto);
    }

    @Override
    public int insert(CommodityDetailDto commodityDetailDto) {
        return commodityDetailDao.insert(commodityDetailDto);
    }

    @Override
    public int update(CommodityDetailDto commodityDetailDto) {
        return commodityDetailDao.update(commodityDetailDto);
    }
}
